﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace UniverDataServiceLib
{
    /// <summary>
    /// Fully decsribed any university object
    /// </summary>
    [DataContract]
    public class UObjectFullData
    {
        [DataMember]
        public string ClassName { get; set; }

        [DataMember]
        public UObjectPropertie[] Fields { get; set; } 
    }
    
    /// <summary>
    /// Descriptes field of university object
    /// </summary>
    [DataContract]
    public class UObjectPropertie
    {
        [DataMember]
        public int ClassNum { get; set; }

        [DataMember]
        public string FieldName { get; set; }

        // this propetie should be used for generation forms!!!
        [DataMember]
        public string FriendlyFieldName { get; set; }

        [DataMember]
        public int FieldType { get; set; }

        [DataMember]
        public string FieldData { get; set; }
    }
}
